package com.student.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ViewResolverRegistry;

@ComponentScan("com.student.controller")
@EnableWebMvc
public class SpringMvcConfig {

    public void configureDefaultServletHanding(DefaultServletHandlerConfigurer configurer){
        configurer.enable();
    }
    public void configureViewResolvers(ViewResolverRegistry registry){
        registry.jsp("/WEB-INF/jsp",".jsp");
    }
}
